from django.shortcuts import render, redirect, reverse, HttpResponse
from chart_web.form import crab_love_form
from django.http import JsonResponse
from chart_web import models
from uuid import uuid4
from utils import Md5
import datetime
from utils.pagination import Pagination


def search_article(request):
    '''搜索文章'''
    if request.method == 'GET':
        return render(request, 'search_article.html')

    kaidn_search = request.POST.get('kaidn_search')
    crab_search = request.POST.get('crab_search')
    return render(request, 'search_article.html', locals())
